<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link href="https://cdn.bootcdn.net/ajax/libs/minireset.css/0.0.2/minireset.min.css" rel="stylesheet" />
  </head>
  <body>
    <style>
      main {
        width: 100vw;
        height: 100vh;
        display: grid;
        grid-template-rows: repeat(2, 20vh);
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 20vh;
      }
      div {
        background-color: coral;
        background-clip: content-box;
        padding: 5px;
        border: solid 1px salmon;
      }
    </style>
    <main>
      <div>1</div>
      <div>2</div>
      <div>3</div>
      <div>4</div>
      <div>5</div>
      <div>6</div>
      <div>7</div>
      <div>8</div>
      <div>6</div>
      <div>7</div>
      <div>8</div>
      <div>6</div>
      <div>7</div>
      <div>8</div>
      <div>6</div>
      <div>7</div>
      <div>8</div>
      <div>7</div>
      <div>8</div>
      <div>6</div>
      <div>7</div>
      <div>8</div>
    </main>
  </body>
</html>
